package service;

import java.sql.SQLException;
import java.util.List;

import dao.ActivityDao;
import model.ActivityInfo;

public class ActivityService {
	public boolean addActivity(String activityName,String activityDescription,int tickets) throws SQLException {
		ActivityDao acitivityDao = new ActivityDao();
		return acitivityDao.addActivity(activityName, activityDescription, tickets);
	}
	public List<ActivityInfo> getActivityList() throws SQLException {
		ActivityDao acitivityDao = new ActivityDao();
		return acitivityDao.getActivityList();
	}
	public boolean reduceRestTicket(String activityName) throws SQLException{
		ActivityDao acitivityDao = new ActivityDao();
		return acitivityDao.reduceRestTicket(activityName);
	}
}
